<template>
  <div class="main">
    <div class="body">
      <div class="left">
        <div class="box">
          <UserPieChart :id="pieChartID"></UserPieChart>
        </div>
      </div>
      <div class="right">
        <div class="box">
         <AwardLineChart :id="lineChartID"></AwardLineChart>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import UserPieChart from "../common/UserPieChart.vue";
import AwardLineChart from "../common/AwardLineChart.vue";
export default {
  name: "DataStatistics",
  components: {AwardLineChart, UserPieChart},
  data(){
    return {
      pieChartID:'pieChartID',
      lineChartID:'lineChartID'
    }
  }
}
</script>

<style scoped>
.main {
  display: flex;
  flex-direction: column;
}
.body {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}
.left {
  margin-right:20px;
  display: flex;
  width: 500px;
  height: 400px;
}
.right {
  margin-left: 20px;
  display: flex;
  width: 500px;
  height: 400px;
}
.box {
  display: flex;
  width: 500px;
  height: 400px;
}
</style>